from PIL import Image

img = Image.open('2.png')
transpose = img.transpose(Image.FILTERED)
transpose.save('output4.png')
